package com.atguigu.mybatisplus.mapper;

import com.atguigu.mybatisplus.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author mgx
 * @version 1.0
 * @description: TODO
 * @date 2022/8/20 0:49
 */
public interface UserMapper extends BaseMapper<User> {

    @Select("select id, age, name, email from tb_user where age < #{age}")
    List<User> getUserList(Integer age);
}
